package oop_05.homework04;

import oop_05.example.Dog;

public class ShapeTest {
    public static void main(String[] args) {
        Shape shape = new Circle(3.2);
        if (shape instanceof Circle)
        {
            Circle circle = (Circle) shape;
            circle.area();
        }

        shape = new Rectangle(3.2,2.4);
        if (shape instanceof Rectangle)
        {
            Rectangle rectangle = (Rectangle)shape;
            rectangle.area();
        }
    }
}
